package org.dromara.assets.service.impl;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.*;
import lombok.extern.jackson.Jacksonized;

import java.util.List;

@Data
@Jacksonized
@Builder
@JsonIgnoreProperties(ignoreUnknown = true)
public class Result1 {
    private Integer code;
    private String message;
    private Result data;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Jacksonized
    @Builder
    @JsonIgnoreProperties(ignoreUnknown = true)
    static class Result{
        private String page;
        private String size;
        private List<FormattedAddress> list;

        @Data
        @NoArgsConstructor
        @AllArgsConstructor
        @Jacksonized
        @Builder
        @JsonIgnoreProperties(ignoreUnknown = true)
        static class FormattedAddress{
            private String action;
            private long trading_at;
            private double price;
            private double ratio;

        }


    }
}
